package com.ruoyi.course.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 sys_user
 * 
 * @author ruoyi
 * @date 2025-06-12
 */
public class CourseTeacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 教师编号 */
    private Long userId;

    /** 校区 */
    @Excel(name = "校区")
    private Long campusId;

    /** 部门ID */
    private Long deptId;

    /** 用户账号 */
    private String userName;

    /** 教师名称 */
    @Excel(name = "教师名称")
    private String nickName;

    /** 用户类型（00系统用户） */
    private String userType;

    /** 教师邮箱 */
    @Excel(name = "教师邮箱")
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 微信号 */
    @Excel(name = "微信号")
    private String teacherWechat;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 0-校长，1-不是校长 */
    private Long isPrincipal;

    /** 0-发布权限，1-无发布权限 */
    private Long publishPermission;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 密码 */
    private String password;

    /** 账号状态 */
    @Excel(name = "账号状态")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 最后登录IP */
    private String loginIp;

    /** 最后登录时间 */
    private Date loginDate;

    /** 密码最后更新时间 */
    private Date pwdUpdateDate;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCampusId(Long campusId) 
    {
        this.campusId = campusId;
    }

    public Long getCampusId() 
    {
        return campusId;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }

    public void setTeacherWechat(String teacherWechat) 
    {
        this.teacherWechat = teacherWechat;
    }

    public String getTeacherWechat() 
    {
        return teacherWechat;
    }

    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }

    public void setIsPrincipal(Long isPrincipal) 
    {
        this.isPrincipal = isPrincipal;
    }

    public Long getIsPrincipal() 
    {
        return isPrincipal;
    }

    public void setPublishPermission(Long publishPermission) 
    {
        this.publishPermission = publishPermission;
    }

    public Long getPublishPermission() 
    {
        return publishPermission;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp() 
    {
        return loginIp;
    }

    public void setLoginDate(Date loginDate) 
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate() 
    {
        return loginDate;
    }

    public void setPwdUpdateDate(Date pwdUpdateDate) 
    {
        this.pwdUpdateDate = pwdUpdateDate;
    }

    public Date getPwdUpdateDate() 
    {
        return pwdUpdateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("campusId", getCampusId())
            .append("deptId", getDeptId())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("userType", getUserType())
            .append("email", getEmail())
            .append("phonenumber", getPhonenumber())
            .append("teacherWechat", getTeacherWechat())
            .append("sex", getSex())
            .append("isPrincipal", getIsPrincipal())
            .append("publishPermission", getPublishPermission())
            .append("avatar", getAvatar())
            .append("password", getPassword())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("loginIp", getLoginIp())
            .append("loginDate", getLoginDate())
            .append("pwdUpdateDate", getPwdUpdateDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
